﻿@page "/parser"
@using TestConsole


<div class="row">
    <div class="col-3">
        <Button Text="分析" OnClick="OnClickParse"></Button>
        <Button Text="刷新" OnClick="Refresh"></Button>
        <Button Text="生成测试JS" OnClick="OnClickGenJs"></Button>
        <Textarea rows="20" DisplayText="Form源码" @bind-Value="@formHtml"></Textarea>

        @if (formHtml != null)
        {
            @(new MarkupString(formHtml))
        }

        <Textarea rows="20" DisplayText="Js" Value="@JsCode"></Textarea>
    </div>

    @if (controls != null)
    {
        <div class="col-3">
            <ControlInfoEditor Controls="controls">

            </ControlInfoEditor>
        </div>
    }

    @if (controls != null)
    {
        <div class="col-3">
            <DyncNewForm Controls="controls">

            </DyncNewForm>
        </div>

    }

    @if (controls != null)
    {
        <div class="col-3">
            <ValueDisplay Controls="controls">
            </ValueDisplay>
        </div>
    }



</div>
